package com.ubox.mqtt_upush.http;

import java.io.Serializable;

import com.ubox.mqtt_upush.utils.JsonUtil;

/**
 * 
 * 请求报文对象
 * 
 * @author mingbao
 * @version 1.0.0 2016-1-23
 *
 *          </pre>
 * @since 1.
 */
public class RequestMsg implements Serializable {

	private static final long serialVersionUID = 1L;
	// 用户名
	private String innerCode;
	// 时间
	private long timestamp;
	// 签名
	private String topic;
	// 业务参数 json string
	private Object data;

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return JsonUtil.toString(this);
	}

	public String getInnerCode() {
		return innerCode;
	}

	public void setInnerCode(String innerCode) {
		this.innerCode = innerCode;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}
}
